package com.jzo2o.customer.controller.worker;

import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.IWorkerCertificationService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 认证相关接口
 *
 * @author itcast
 * @create 2023/9/11 16:14
 **/
@RestController("workerCertificationAuditController")
@RequestMapping("/worker/worker-certification-audit")
@Api(tags = "服务端 - 认证相关接口")
public class CertificationAuditController {
    @Autowired
    private IWorkerCertificationService workerCertificationService;

    @PostMapping
    private void workerCertificationAudit(@RequestBody WorkerCertificationAuditAddReqDTO dto){
        workerCertificationService.workerCertificationAudit(dto);
    }

    @GetMapping("/rejectReason")
    private RejectReasonResDTO rejectReason(){
        return workerCertificationService.rejectReason();
    }
}
